.test-settings-wrapper {
    display: flex;
    height: 100vh;
    background-color: #f5f5f5;

    .sidebar {
        width: 280px;
        background-color: #fff;
        border-right: 1px solid #e8e8e8;
        display: flex;
        flex-direction: column;

        .sidebar-content {
            flex: 1;
            padding: 16px 0;

            .menu-item {
                display: flex;
                align-items: center;
                padding: 12px 24px;
                color: #666;
                cursor: pointer;
                transition: all 0.3s;

                &:hover {
                    background-color: #f0f0f0;
                    color: #1890ff;
                }

                &.active {
                    background-color: var(--btnBG);
                    color: #fff;
                    border-right: 3px solid var(--btnBG);
                    border-radius: 30px;
                }

                .anticon {
                    margin-right: 12px;
                    font-size: 16px;
                }
            }
        }
    }

    .main-content {
        flex: 1;
        padding: 24px;
        overflow-y: auto;

        .page-header {
            margin-bottom: 24px;

            h1 {
                margin: 0;
                font-size: 24px;
                font-weight: 600;
                color: #262626;
            }
        }

        .content-panels {
            display: flex;
            height: calc(100vh - 120px);

            .panel {
                background-color: #fff;
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
                display: flex;
                flex-direction: column;

                .panel-header {
                    padding: 20px 24px;
                    border-bottom: 1px solid #f0f0f0;

                    h2 {
                        margin: 0;
                        font-size: 18px;
                        font-weight: 600;
                        color: #262626;
                    }
                }

                .panel-content {
                    flex: 1;
                    padding: 24px;
                    overflow-y: auto;
                }
            }

            .left-panel {
                width: 35%;

                .dropdown-section {
                    margin-bottom: 24px;
                    width: 80%;

                    .select-with-icon {
                        position: relative;
                        display: flex;
                        align-items: center;

                        .select-icon {
                            position: absolute;
                            left: 12px;
                            top: 50%;
                            transform: translateY(-50%);
                            color: #bfbfbf;
                            font-size: 14px;
                            z-index: 1;
                            pointer-events: none;
                        }

                        .ant-select {
                            width: 100% !important;
                        }

                        .operation-select {
                            .ant-select-selector {
                                padding-left: 36px !important;
                            }
                        }
                    }
                }
            }

            .right-panel {
                width: 65%;

                .speed-definition {
                    margin-bottom: 32px;
                    padding: 20px;
                    border: 1px solid #e8e8e8;
                    border-radius: 8px;
                    transition: all 0.3s;
                    display: flex;
                    gap: 24px;
                    align-items: flex-start;

                    .definition-header {
                        flex-shrink: 0;
                        width: 120px;

                        .reference-checkbox {
                            .ant-checkbox-checked .ant-checkbox-inner {
                                background-color: var(--btnBG);
                                border-color: var(--btnBG);
                            }
                        }
                    }

                    .graph-section {
                        flex-shrink: 0;
                        width: 200px;
                        display: flex;
                        justify-content: center;

                        .speed-graph {
                            position: relative;
                            width: 200px;
                            height: 120px;
                            border: 1px solid #e8e8e8;
                            border-radius: 4px;
                            background-color: #fff;

                            .graph-canvas {
                                width: 100%;
                                height: 100%;
                            }
                        }
                    }

                    .definition-content {
                        flex: 1;
                        display: flex;
                        gap: 24px;
                        align-items: flex-start;



                        .speed-controls {
                            flex: 1;
                            display: flex;
                            gap: 16px;



                            .control-column {
                                .column-header {
                                    font-weight: 600;
                                    color: #262626;
                                    margin-bottom: 8px;
                                    font-size: 14px;
                                }

                                .control-buttons {
                                    display: flex;
                                    flex-direction: column;
                                    gap: 8px;

                                    .ant-btn {
                                        width: 120px;
                                        height: 32px;
                                        font-size: 12px;
                                        display: flex;
                                        align-items: center;
                                        justify-content: center;
                                        gap: 4px;

                                        &.active {
                                            background-color: var(--btnBG);
                                            border-color: var(--btnBG);
                                            color: #fff;
                                        }

                                        .anticon {
                                            font-size: 12px;
                                        }
                                    }
                                }

                                .value-inputs {
                                    .input-group {
                                        display: flex;
                                        align-items: center;
                                        gap: 8px;

                                        .ant-input {
                                            width: 80px;
                                            height: 40px;
                                            font-size: 12px;
                                        }

                                        .separator {
                                            color: #666;
                                            font-weight: 500;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

// 响应式设计
@media (max-width: 1200px) {
    .test-settings-wrapper {
        .main-content {
            .content-panels {
                flex-direction: column;
                height: auto;

                .panel {
                    min-height: 400px;
                }

                .left-panel,
                .right-panel {
                    flex: 1;
                    margin: 0 0 24px 0;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .test-settings-wrapper {
        flex-direction: column;

        .sidebar {
            width: 100%;
            height: auto;
        }

        .main-content {
            padding: 16px;
        }
    }
}